<%@ page errorPage="UserExceptionHandler.jsp"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<%
	if (session.getAttribute("user") == null) {

		RequestDispatcher rd = request
				.getRequestDispatcher("./LoginForm.jsp");
		rd.forward(request, response);
%>
<%
	}
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>



	<body">

		<jsp:include page="Header.jsp"></jsp:include>
		<br />
		<table align="center" border="1" bgcolor="" width="60%"
			cellpadding="10">
			<caption>
				VILLAGES INFORMATION
			</caption>
			<tr bgcolor="ashblue">
				<i>Village Information </i>
			</tr>
			<tr>
				<th bgcolor="#90EE90">
					<b>Village Id</b>
				</th>
				<th bgcolor="#90EE90">
					<b>State Name</b>
				</th>
				<th bgcolor="#90EE90">
					<b>District Name</b>
					<th bgcolor="#90EE90">
						<b>Village Name</b>
					</th>
					<th bgcolor="#90EE90">
						<b>More Actions</b>
					</th>
			</tr>
			<c:if test="${not empty villageVector}">
				<c:forEach var="village" items="${villageVector}">
					<tr>

						<td>
							<a href="./VillageUpdate?vid=${village.vid }">${village.vid }




							
						</td>
						<td>
							${village.sname }
						</td>
						<td>
							${village.dname }
						</td>

						<td>
							${village.vname }
						</td>
						<td>
							<a href="./CancelVillageAction?vid=${village.vid }">Cancel</a>
						</td>
					</tr>
				</c:forEach>
			</c:if>

		</table>
		<br />
		<br />

		<center>
			<a href="./ViewVillageState">Add New Village></a>
		</center>
		<br />
		<br />
		<br />


		Note:Click On VillagelID to Update

		<br />
		<br />
		<br />

		<jsp:include page="Footer.jsp"></jsp:include>
	</body>
</html>
